import React from "react";
import { useModel } from "@umijs/max";

interface Props {
  type: string;
  value: string | number | undefined;
}

const XlTableDictColumn: React.FC<Props> = ({type, value}) => {
  const { getDictLabel } = useModel('dictModel');

  return (
    <span>{getDictLabel(type, value)}</span>
  )
}
export default XlTableDictColumn;